<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 type="color:pink">js</h1>
    <script>
        let name=prompt("请输入姓名")
        console.log(name)

        function person(name,age){
            console.log("名字"+name+",年龄"+age)
            return name
        }
        let input=person(name,18)
        alert(input)

        let people=person
        people(name,19)

        let aa=(name)=>{
            document.write(""+name)
        }
        aa(name)

        let bb=name=>document.write("b"+name)
        bb(name)

        console.log(typeof 10)

        console.log(typeof "ffff")

        console.log(typeof true)

        console.log(typeof undefined)

        let arr=[1,2,3]
        console.log(typeof arr)
        console.log(arr instanceof Array)
        console.log(people)

        let dd={
            name:"zhangsan",
            age:20
        }
        console.log(dd instanceof Object)
        console.log(Object)
    </script>
</body>
</html>